<div class="admin_left actions">
    <h3 style="font-size:20px;">Manage more</h3>
	<ul>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('List Images'), array('action' => 'index')); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Image'), array('action' => 'add')); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('List Items'), array('controller' => 'items', 'action' => 'index')); ?> </li>
		<li style="list-style-type:none; margin-left:0; padding-top:15px;"><?php echo $this->Html->link(__('New Item'), array('controller' => 'items', 'action' => 'add')); ?> </li>
	</ul>
</div>




<div class="admin_right images view">

    <div id=breadcrumbAdmin>
        <?php $this->Html->addCrumb('Images', '/Images/index'); ?>
        <?php $this->Html->addCrumb('View', '/Images/view', array('style'=> ('text-decoration:underline; color:#EB1E70;'))); ?>
        <?php echo $this->Html->getCrumbs(' > ', array( 'text' => 'Items', 'url' => array('controller' => 'items', 'action' => 'index'), 'escape' => false)); ?>
    </div>

    <h2><?php  echo __('Image'); ?></h2>
    <table class="table table-striped table-bordered">
                <tr>
                    <th><?php echo __('Id'); ?></th>
                    <th><?php echo __('Name'); ?></th>
                    <th><?php echo __('Item belonged'); ?></th>
                </tr>
                <tr>
                    <td>
                                <?php echo h($image['Image']['id']); ?>
                                &nbsp;
                    </td>

                    <td>
                                <?php echo "<img src='/CakePHP/img/".IMG_DIR.DS.$image['Image']['name']."' title='".$image['Image']['name']."' alt='Preview image' height=320 width=150>"; ?>
                                &nbsp;
                    </td>

                    <td>
                                <?php echo $this->Html->link($image['Item']['name'], array('controller' => 'items', 'action' => 'view', $image['Item']['id'])); ?>
                                &nbsp;
                    </td>
                </tr>
    </table>


    <div class="related">
        <h3><?php echo __('Related Items'); ?></h3>
        <table class="table table-striped table-bordered">
            <tr>
                    <th><?php echo __('Id'); ?></th>
                    <th><?php echo __('Name'); ?></th>
                    <th class="actions"><?php echo __('Actions'); ?></th>
            </tr>
            <tr>
                    <td><?php echo $image['Item']['id']; ?></td>
                    <td><?php echo $image['Item']['name']; ?></td>
                    <td class="actions">
                            <?php echo $this->Html->link(__('View'), array('controller' => 'items', 'action' => 'view', $image['Item']['id'])); ?>
                            <?php echo $this->Html->link(__('Edit'), array('controller' => 'items', 'action' => 'edit', $image['Item']['id'])); ?>
                            <?php echo $this->Form->postLink(__('Delete'), array('controller' => 'items', 'action' => 'delete', $image['Item']['id']), null, __('Are you sure you want to delete # %s?', $image['Item']['id'])); ?>
                    </td>
            </tr>
        </table>
    </div>


</div>